package com.avic.ipcc;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;

import java.util.Random;

public class TestService extends Service {
    public TestService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        return new LocalBinder();
    }

    public class LocalBinder extends Binder {
        TestService getService() {
            return TestService.this;
        }
    }

    private final Random generator = new Random();

    public int getRandomNumber() {
        return generator.nextInt(100);
    }


}
